<?php

namespace app\storeapi\controller;
use app\storeapi\model\Region AS RegionModel;

/**
 * 地区管理控制器
 * Class Region
 * @package app\store\controller
 */
class Region extends Controller
{
    /**
     * 省份列表
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function provinceList()
    {
        $model = new RegionModel;
        $data = $model->provinceList();
        return $this->renderSuccess($data);

    }

    /**
     * 城市列表
     * @return id
     * @throws \think\exception\DbException
     */
    public function otherList()
    {
        $param = $this->postData();
        $model = new RegionModel;
        $data = $model->otherList($param);
        return $this->renderSuccess($data);

    }



}



